<template>
  <!-- 火车页面 -->
  <div id="train">
    <div class="banner">
      <img src="../../assets/img/train/banner.png" alt="" />
    </div>
    <div class="center">
      <trip-init
        txt1="国内火车"
        txt2="境外火车"
        :subnav="true"
        :trainbool="true"
        subtxt1="单程"
        subtxt2="往返"
        subtxt3="多程"
      >
        <!-- txt1，txt2表示一级导航的文字   subtxt1 subtxt3 subtxt3 二级导航文字  subnav 二级导航是否需要   trainbool:这个是火车页面的选项卡判断-->
      </trip-init>
    </div>
    <div class="footer">
      <trainFooter />
    </div>
  </div>
</template>
<script>
import tripInit from "../common/Tripinit.vue"; //中间的组件
import trainFooter from "../common/Train_phone/Train_footer.vue"; //尾部的组件
export default {
  name: "Train",
  setup() {
    return {};
  },
  components: {
    tripInit,
    trainFooter,
  },
};
</script>
<style lang="less" scoped>
#train {
  position: relative;
  > .banner {
    img {
      display: block;
      width: 414px;
      height: 173px;
    }
  }
  > .center {
    width: calc(100% - 20px);
    position: absolute;
    top: 105px;
    margin: 0 10px;
  }
  > .footer {
    position: absolute;
    top: 450px;
    width: calc(100% - 20px);
    margin: 0 10px;
    padding: 10px 0px;
  }
}
</style>
